package com.qiaofang.entity.enums;

/**
 * @author qi.liu
 * @date: 2021/1/12 16:36
 */
public enum SystemEnum {

    BACK("0", "运营后台"),
    CHANNEL("1", "巧渠道"),
    FIELD_HELPER("2", "案场助手"),
    DISTRIBUTION_HELPER("3", "分销助手"),
    DISTRIBUTION("4", "巧分销");

    public static String getDescByNo(String no) {
        for (SystemEnum systemEnum : SystemEnum.values()) {
            if(no.equals(systemEnum.getNo())) {
                return systemEnum.getDesc();
            }
        }
        return null;
    }

    SystemEnum(String no, String desc) {
        this.no = no;
        this.desc = desc;
    }

    private String no;

    private String desc;

    public String getNo() {
        return no;
    }

    public String getDesc() {
        return desc;
    }
}
